//package com.travel.config;
//
//import com.travel.feign.EsFeign;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.domain.Page;
//import org.springframework.data.domain.PageImpl;
//import org.springframework.stereotype.Service;
//
//import javax.swing.text.html.parser.Entity;
//import java.util.List;
//
//public class MyFeignClientImpl extends PageImpl<Object> {
//
//    private final EsFeign esFeign;
//
//    @Autowired
//    public MyFeignClientImpl(EsFeign esFeign) {
//        this.esFeign = esFeign;
//    }
//
//    public MyCustomPageImpl<Entity> getEntities(int page, int size) {
//        Page<Entity> pageOfEntities = esFeign.getEntities(page, size);
//        List<Entity> entities = pageOfEntities.getContent();
//        return new MyCustomPageImpl<>(entities, pageOfEntities.getPageable(), pageOfEntities.getTotalElements());
//    }
//}
